import { reactive } from "vue";
import type { FormRules } from "element-plus";

/** 自定义表单规则校验 */
export const formRules = reactive(<FormRules>{
  name: [
    { required: true, message: "职务名称为必填项", trigger: "blur" },
    { max: 50, message: "职务名称不能超过50字", trigger: "blur" }
  ],
  desc: [{ max: 200, message: "职务描述不能超过200字", trigger: "blur" }]
});
